package
{
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	import flash.events.MouseEvent;
	
	import starling.core.Starling;
	
	[SWF(height="600", width="1024")]
	public class SSJUIExport extends Sprite
	{
		private var mstarling : Starling;
		public function SSJUIExport()
		{
			if(this.stage)
			{
				this.stage.scaleMode = StageScaleMode.NO_SCALE;
				this.stage.align = StageAlign.TOP_LEFT;
			}
			this.mouseEnabled = this.mouseChildren = false;
			this.loaderInfo.addEventListener(Event.COMPLETE, loaderInfo_completeHandler);
		}
		
		private function loaderInfo_completeHandler(event:Event):void
		{
			Starling.handleLostContext = true;
			Starling.multitouchEnabled = true;
			mstarling = new Starling(UIExportMain, this.stage);
			mstarling.enableErrorChecking = false;
			mstarling.start();
		}
	}
}